Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: burn and mint #150

Merged

Conversation

Daanvdplas
Copy link
Collaborator

Adds burn and mint to the fungibles use case.

Closes #98

Copy link
Collaborator

@chungquantin chungquantin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You missed one line

#[test]
fn asset_exists_works() {
	new_test_ext().execute_with(|| {
-		create_asset(ALICE, ASSET, 100);
+ create_asset(ALICE, ASSET);
		assert_eq!(Assets::asset_exists(ASSET).encode(), Fungibles::read_state(AssetExists(ASSET)));
	});
}

Copy link
Collaborator

@peterwht peterwht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done. Small comment to create an issue to refactor some code in integration tests.

@Daanvdplas Daanvdplas merged commit 8816c3c into daan/feat-asset_management Aug 6, 2024
6 checks passed
@Daanvdplas Daanvdplas deleted the daan/feat-burning_and_minting branch August 6, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat (pop api): add burn and mint to local fungibles use case
3 participants